#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <string.h>

int main()
{
  FILE* ff = fopen("./bite", "wb+");
  if(ff == NULL)
  {
    return 1;
  }
  fseek(ff, 0, SEEK_SET);
  const char* data = "linux so easy!\n";
  size_t ret = fwrite(data, 1, strlen(data), ff);
  if(ret != strlen(data))
  {
    return 1;
  }
  fseek(ff, 0, SEEK_SET);
  char buf[1024] = { 0 };
  fread(buf, 1, strlen(data), ff);
  printf("%s", buf);
  fclose(ff);

  return 0;
}
